<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PermisosListado.aspx.cs"
    Inherits="PermisosListado" Title="Untitled Page" MasterPageFile="~/MasterPageMcSigAdmin.master" SmartNavigation="true" EnableViewState="true" %>

   
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <anthem:Panel ID="Panel1" runat="server" AutoUpdateAfterCallBack="True" EnabledDuringCallBack="False" Width="100%">
    <h1 class="membresia">Permisos</h1>
    <p class="instruccion">Para actualizar la informacion de Permisos, por favor complete los datos en el formulario
                                y a continuacion pulse sobre el boton ACTUALIZAR.</p>
                                
        <table class="content-box1 padding">
            <tr>
                <td>Tipo Perfil</td><td>
                                <anthem:DropDownList ID="dlpTipoPerfil" runat="server" OnSelectedIndexChanged="dlpTipoPerfil_SelectedIndexChanged1"
                        AutoPostBack="True" EnableCallBack="False" EnabledDuringCallBack="False">
                        <asp:listitem value="R">Perfil Privado</asp:listitem>
                        <asp:listitem value="P" selected="True">Perfil P&#250;blico</asp:listitem>
                    </anthem:DropDownList>&nbsp;&nbsp;&nbsp;</td>
                            <td>
                                Perfil</td><td>
                    <anthem:DropDownList ID="dlpPerfiles" runat="server" OnSelectedIndexChanged="dlpTipoPerfil_SelectedIndexChanged"
                        AutoPostBack="True" EnableCallBack="False" EnabledDuringCallBack="False">
                    </anthem:DropDownList></td>
                        </tr>
                        </table>
                         
                            
                    
                    <anthem:Label ID="lblMensaje" runat="server"></anthem:Label>
            
                    <cc1:WccAcciones ID="WccAcciones1" CssClass="toolbar" runat="server" OnUpdate_OnClick="WccAcciones1_Update_OnClick"
                        UpdateEnableCallBack="False" UpdateCausesValidation="False" UpdateEnabledDuringCallBack="False"
                        ValidateCausesValidation="True" ValidateEnableCallBack="True" ValidateEnabledDuringCallBack="True">
                    </cc1:WccAcciones>
                
                    <asp:datagrid id="DatagridPermisos" runat="server" allowsorting="True" autogeneratecolumns="False"
                        borderwidth="1px" cellpadding="3" CssClass="forma" 
                        width="100%"  GridLines="Horizontal">
<EditItemStyle CssClass="fila1"></EditItemStyle>

<PagerStyle Mode="NumericPages" CssClass="numeracion" BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right"></PagerStyle>

<AlternatingItemStyle CssClass="fila2"></AlternatingItemStyle>

<ItemStyle CssClass="fila1"></ItemStyle>
<Columns>
<asp:BoundColumn DataField="SSM_ID" HeaderText="SSM_ID" Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="OPCION" HeaderText="Opci&#243;n"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Asignada"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBox1" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("ASIGNADA").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("ASIGNADA").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Adicionar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxAdicionar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("ADICIONAR").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("ADICIONAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Actualizar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxActualizar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("ACTUALIZAR").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("ACTUALIZAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Eliminar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxEliminar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("ELIMINAR").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("ELIMINAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Validar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxValidar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("VALIDAR").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("VALIDAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Rechazar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxRechazar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("RECHAZAR").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("RECHAZAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Publicar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxPublicar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("PUBLICAR").ToString() == "-1" ? false :  true%>' Checked='<%#Eval("PUBLICAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Archivar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxArchivar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False"  Enabled ='<%#Eval("ARCHIVAR").ToString() == "-1" ? false :  true%>'  Checked='<%#Eval("ARCHIVAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Ver Auditoria"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxVerAuditoria" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("VerAuditoria").ToString() == "-1" ? false :  true%>'  Checked='<%#Eval("VerAuditoria").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Consultar"><EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<anthem:CheckBox id="CheckBoxConsultar" runat="server" EnabledDuringCallBack="False" EnableCallBack="False" Enabled ='<%#Eval("CONSULTAR").ToString() == "-1" ? false :  true%>'  Checked='<%#Eval("CONSULTAR").ToString() == "1" ? true :  false%>' ></anthem:CheckBox> 
</ItemTemplate>
</asp:TemplateColumn>
</Columns>

<HeaderStyle CssClass="encabezado"></HeaderStyle>
                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
</asp:datagrid>
                
                    <cc1:WccAcciones ID="WccAcciones2"  CssClass="toolbar1" runat="server" OnUpdate_OnClick="WccAcciones1_Update_OnClick"
                        UpdateEnableCallBack="False" UpdateCausesValidation="False" UpdateEnabledDuringCallBack="False"
                        ValidateCausesValidation="True" ValidateEnableCallBack="True" ValidateEnabledDuringCallBack="True">
                    </cc1:WccAcciones>
                
        <input id="txtCommand" type="hidden" runat="server">
    </anthem:Panel>
</asp:Content>